package com.gengzp.common.model.nacos.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName AddNacosConfigReq
 * @Description 添加nacos配置请求实体
 * @Author gengzp
 * @Date 2025/5/30 22:06
 */
@Data
@ApiModel(description = "添加nacos配置请求实体")
public class AddNacosConfigReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 989855157954669664L;

    /**
     * nacos服务地址
     */
    @NotBlank(message = "nacos服务地址不能为空")
    @ApiModelProperty(value = "nacos服务地址", required = true)
    private String nacosAddress;

    /**
     * nacos命名空间
     */
    @NotBlank(message = "nacos命名空间不能为空")
    @ApiModelProperty(value = "nacos命名空间", required = true)
    private String nacosNamespace;

    /**
     * nacos账号
     */
    @ApiModelProperty(value = "nacos账号")
    private String nacosAccount;

    /**
     * nacos密码
     */
    @ApiModelProperty(value = "nacos密码")
    private String nacosPassword;

    /**
     * nacos配置描述
     */
    @ApiModelProperty(value = "nacos配置描述")
    private String nacosDescription;

}
